package com.fingard.dsp.bank.directbank.bankInterface;

import com.fingard.dsp.bank.reqrespobj.auth.ReqAuth;
import com.fingard.dsp.bank.reqrespobj.auth.ReqQryAuth;
import com.fingard.dsp.bank.reqrespobj.auth.RetAtsAuth;

/**
 * 鉴权(代扣前校验用户开户行信息是否正确)
 */
public interface IAuthentication {
	/**
	 * 鉴权提交
	 * 
	 * @param p_reqAuth 鉴权请求对象
	 * @return 鉴权响应对象
	 * @throws Exception 通讯异常
	 */
	RetAtsAuth dealAuth(ReqAuth p_reqAuth) throws Exception;
	
	/**
	 * 鉴权查询
	 * 
	 * @param p_reqAuth 鉴权查询请求对象
	 * @return 鉴权查询响应对象
	 * @throws Exception 通讯异常
	 */
	RetAtsAuth dealQryAuth(ReqQryAuth p_reqAuth) throws Exception;
}